<?php 
namespace Modules\ShopApi\Http\Controllers\v1;
use Illuminate\Http\Request;
use Modules\AuthAdmin\Http\Requests\CommonIdRequest;
use Modules\ShopApi\Models\ShopProductType as ShopProductTypeModel;
class CategoryController extends CommonController
{
	/**
	 * @name  商品一级分类
	 * @method  GET
	 * @return  JSON
	 */
    public function get_category_one_list(Request $request)
    {
		return (new ShopProductTypeModel())->get_category_one_list();
    }
	/**
	 * @name  商品二级分类
	 * @method  GET
	 * @param  pid int 上级分类id	
	 * @return  JSON
	 */
    public function get_category_tow_list(Request $request)
    {
		return (new ShopProductTypeModel())->get_category_tow_list($request->get('pid'));
    }
}
